package cn.infinite.security.configuration;


import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties("spring.security.security-basic.image-check-code")
@ConditionalOnProperty(prefix = "spring.security.security-basic.image-check-code", name = "enable", value = "true")
public class ImageCheckCodeConfigProperties {

    private String scorePath = "/image-check-auth";

    private Boolean enable;

    private Short width = 200;

    private Short height = 30;

    private Short codeLength = 6;

    private String imageCheckCodeGenerateEndPoint = "/check-code";

    private String judgeImageCheckCodeEndPoint = "/need-check";

}
